package com.wn;

import com.wn.config.SpringConfig01;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author yellow Docter
 * @date 2022 -07-08
 * @desc
 */
public class Application01 {

    public static void main(String[] args) {

        // 通过xml启动容器
//        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("xxx");

        // 通过注解配置 创建容器
        AnnotationConfigApplicationContext applicationContext1 = new AnnotationConfigApplicationContext(SpringConfig01.class);


    }

}
